<?php
if (!defined('PHPUnit_MAIN_METHOD')) 
{
	define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}

require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

set_include_path(realpath(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'src'
				. PATH_SEPARATOR . '.' . PATH_SEPARATOR . get_include_path());

require_once 'Base/AllTests.php';

class AllTests
{
	public static function main()
	{
		$parameters = array();
		PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
	}

	public static function suite()
	{
		$suite = new PHPUnit_Framework_TestSuite('Base');
		
		$suite->addTest(Base_AllTests::suite());
		
		return $suite;
	}
}

if (PHPUnit_MAIN_METHOD == 'AllTests::main') 
{
	AllTests::main();
}
